Online Stochastic Bin Packing
نویسندگان
چکیده
Motivated by the problem of packing Virtual Machines on physical servers in the cloud, we study the problem of one-dimensional online stochastic bin packing. Items with sizes sampled independent and identically (i.i.d.) from a distribution with integral support arrive as a stream and must be packed on arrival in bins of size B, also an integer. The size of an item is known when it arrives and the goal is to minimize the number of non-empty bins (or equivalently, waste, defined to be the total unused space in non-empty bins). Online stochastic bin packing has been extensively studied in theoretical computer science, combinatorics, and probability literature, and there exist many heuristics. However all such heuristics are either optimal for only certain classes of item size distributions, or rely on learning the distribution. The state-of-the-art Sum of Squares heuristic (Csirik et al. [8]) obtains sublinear (in number of items seen) waste for distributions where the expected waste for the optimal offline algorithm is sublinear, but has a constant factor larger waste for distributions with linear waste under OPT. In [8], the authors solved this problem by learning the distribution and solving an LP to inject phantom jobs in the arrival stream. As our first contribution, we present two distribution-agnostic bin packing heuristics that achieve additive O( √ n) waste compared to OPT for all distributions. Our algorithms are essentially gradient descent on suitably defined Lagrangian relaxations of the bin packing Linear Program. The first algorithm is very similar to the SS algorithm, but conceptually packs the bins top-down instead of bottom-up. This motivates our second heuristic that uses a different Lagrangian relaxation to pack bins bottom-up. Our heuristics can also be interpreted as iterative Primal-Dual algorithms, and provide a unified view of Primal-Dual algorithms in stochastic processes, convex optimization and theoretical computer science communities. Next, we consider the more general problem of online stochastic bin packing with item departures where the time requirement of an item is only revealed when the item departs. Our algorithms extend as is to the case of item departures, and we demonstrate their excellent performance experimentally. We also briefly revisit the Best Fit heuristic which has not been studied in the scenario of item departures yet. ∗University of Chicago. This research was done while the author was a postdoctoral researcher at Google. †Google, Inc. 1 ar X iv :1 21 1. 26 87 v1 [ cs .D S] 1 2 N ov 2 01 2
منابع مشابه
A Stochastic Model of Bin-Packing
Recent research in combinatorial bin-pacldng models is extended ~o a stochastic model in which an arbitrary distribution of piece sizes is assumed. The asymptotic expected bin occupancy is obtained for a simple on-line algorithm. Convergence properties arc also presented so that, for a given set of pieces, this measure can be related to the expected number of bins required relative t, an optimi...
متن کاملA Simple Proof of Liang's Lower Bound for On-Line bin Packing and the Extension to the Parametric Case
Galambos, G. and J.B.G. Frenk, A simple proof of Liang’s lower bound for on-line bin packing and the extension to the parametric case, Discrete Applied Mathematics 41 (1993) 173-178. In this note we present a simplified proof of a lower bound for on-line bin packing. This proof also covers the well-known result given by Liang in Inform. Process Lett. 10 (1980) 76-79.
متن کاملOnline Bandwidth packing with symmetric distribution
We consider the following stochastic bin packing process: the items arrive continuously over time to a server and are packed into bins of unit size according to an online algorithm. The unpacked items form a queue. The items have random sizes with symmetric distribution. Our first contribution identifies some monotonicity properties of the queueing system that allow to derive bounds on the queu...
متن کاملColorful Bin Packing
We study a variant of online bin packing, called colorful bin packing. In this problem, items that are presented one by one are to be packed into bins of size 1. Each item i has a size si ∈ [0, 1] and a color ci ∈ C, where C is a set of colors (that is not necessarily known in advance). The total size of items packed into a bin cannot exceed its size, thus an item i can always be packed into a ...
متن کاملExtending Two-Dimensional Bin Packing Problem: Consideration of Priority for Items
In this paper a two-dimensional non-oriented guillotine bin packing problem is studied when items have different priorities. Our objective is to maximize the total profit which is total revenues minus costs of used bins and wasted area. A genetic algorithm is developed to solve this problem where a new coding scheme is introduced. To evaluate the performance of the proposed GA, first an upper b...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- CoRR
دوره abs/1211.2687 شماره
صفحات -
تاریخ انتشار 2012